//配置数据的结构
const { Schema, model } = require('mongoose');
const outPackSchema = new Schema({
    outPackName: String,
    outPackId: String,
    outPackTime: String,
    outPackMaterial: String,
    outPackNote: String,
    //关联物料清单ID
    thingListId: {
        type: Schema.Types.ObjectId,
        ref: 'thingListsModel'
      },
}, { versionKey: false });
//配置数据模型
const outPackModule = model('outPackModule', outPackSchema, 'outPacks');

//把配置的数据模型暴露出去
module.exports = {
    outPackModule
}